Hello, |
Re: Calculating DXL Attribute |
Re: Calculating DXL Attribute Mathias Mamsch - Thu Nov 26 03:19:43 EST 2009 |
Re: Calculating DXL Attribute DXL attributes are refreshed when, trying to get their value, a null value is returned. To force update, you have to loop through objects and read the new value just after you set it to null. |
Re: Calculating DXL Attribute
There's no reason for the AttrDXL to set another Text attribute. Define the AttrDXL as 'text' and have it set itself via obj.attrDXLName = Results. Other DXL or whatever can use this attr normally.
Link lnk
Buffer buf = create
bool DoneOne = false
for lnk in obj ->"*" do // <<Notice 'obj' is not declared nor assigned>>
{ if this link qualifies for display
{ if (DoneOne) buf += "\n" // EOL after previous link info
DoneOne = true
buf += whatever link info I want about this link
}
}
if (!DoneOne) buf += " "
obj.attrDXLName = tempStringOf(buf)
delete(buf)
|